package cn.com.zcode.core.cxf.client;


/**
 * 
 * @author zeng.jinqing
 * @date Apr 19, 2013
 */
public class ObjectProxy {
	
	private Object entity;

	public ObjectProxy(Object result) {
		this.entity = result;
	}


	public Object getEntity() {
		return entity;
	}

	public <T> T convert(Class<T> zclass, String... inFields) throws Exception {
		return ConvertUtil.convert(entity, zclass, inFields);

	}
	public Class<?> getEntityClass(){
		return entity!=null?entity.getClass():null;
	}
	
	
	@Override
	public String toString() {
		return "ObjectProxy [entity=" + entity + "]";
	}


}
